package controller;

import javax.swing.JFrame;
import javax.swing.JPanel;

import boundary.MainGui;
import boundary.SubscriptionOrderForManyCarsGui;
import boundary.SubscriptionOrderGui;
import boundary.SubscriptionsViewGui;

public class SubscriptionOrder {
	public SubscriptionOrder()
	{
	}
	public void getOrder()
	{
		JFrame frame=MainGui.getFrame();
		SubscriptionOrderGui subOrder=new SubscriptionOrderGui();
		subOrder.setLastPanel((JPanel)frame.getContentPane());
		subOrder.setFrame(frame);
		frame.setContentPane(subOrder);
		frame.setVisible(true);
	}
	public void getOrderForManyCars()
	{
		JFrame frame=MainGui.getFrame();
		SubscriptionOrderForManyCarsGui subOrder=new SubscriptionOrderForManyCarsGui();
		subOrder.setLastPanel((JPanel)frame.getContentPane());
		subOrder.setFrame(frame);
		frame.setContentPane(subOrder);
		frame.setVisible(true);
	}
	public void viewOrders()
	{
		JFrame frame=MainGui.getFrame();
		SubscriptionsViewGui subOrder=new SubscriptionsViewGui();
		subOrder.setLastPanel((JPanel)frame.getContentPane());
		subOrder.setFrame(frame);
		frame.setContentPane(subOrder);
		frame.setVisible(true);
	}

}
